import { request } from '@/network/request'

export function login (username, password) {
  return request({
    url: '/login',
    method: 'post',
    params: {
      username,
      password
    }
  })
}

// export const login = (data) => {
//   return request({
//     headers: {
//       "Content-Type": "application/x-www-form-urlencoded"
//     },
//     url: testUrl.testUrl,
//     method: 'post',
//     data:data
//   });
// };